//
//  LastPayTableViewCell.m
//  FaceTo
//
//  Created by 程邦明 on 2017/8/8.
//  Copyright © 2017年 chengbangming. All rights reserved.
//

#import "LastPayTableViewCell.h"

@implementation LastPayTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initUI];
    }
    return self;
}
- (void)initUI{
    self.backgroundColor = WhiteColor;

    _namelabel = [[UILabel alloc]init];
    _namelabel.font = [UIFont systemFontOfSize:14];
    _namelabel.text = @"实付金额";
    _namelabel.textColor = Color(86, 86, 86);
    _namelabel.textAlignment = NSTextAlignmentLeft;
    [self addSubview:_namelabel];
    
    _lastPayLabel = [[UILabel alloc]init];
    _lastPayLabel.font = [UIFont systemFontOfSize:14];
    _lastPayLabel.textColor = Color(255, 210, 49);
    _lastPayLabel.text = @"￥22.5";
    _lastPayLabel.textAlignment = NSTextAlignmentRight;
    [self addSubview:_lastPayLabel];
    
    [_namelabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.mas_centerY);
        make.left.offset(10);
        make.height.mas_equalTo(15);
    }];
    
    [_lastPayLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.offset(-10);
        make.centerY.equalTo(self.mas_centerY);
        make.height.mas_equalTo(15);
    }];
    
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
